﻿@{
    ViewBag.Title = "Common Command";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
            <ol class="breadcrumb">
    <li><a href="/Home.html">Home</a></li>
    <li><a href="/WebApp/WebApi"> Sanelib WebApp</a></li>
    <li class="active">Test</li>
</ol>
       
                
                <div id="introduction">
                    <h1 class="text-left">ControllerApis</h1>
                    <h4>TestController</h4>
                </div>
                <div>
                    <h3>Class Inherited : SmartApiController</h3>
                    <table class="table-condensed table-striped">
                        <tr>
                            <th>Constructor</th>
                            <th>Parameters</th>
                        </tr>
                        <tr>
                            <td class="table-bordered">IUserSession</td>
                            <td class="table-bordered">IMapingEngine</td>
                        </tr>
                    </table>
                    <p>Where, Parameters Local Variable are assigned to a Instance Variable form the <b>base</b> of <a href="/WebApp/SmartApi" class="btn-link">SmartApiController</a></p>
                    <ol id="method">
                        <li>
                            <p><b>Get() :</b> in this method to the set the static value at the runtime see in this exmple</p>
                            <pre><code>
public HttpResponseMessage Get()
{
    var response = new List&lt;TrackLogResponse&gt;
    {
        new TrackLogResponse
        {
            Code = "Abc",
            Id = Guid.NewGuid(),
            DetectedOn = DateTime.Now.ToString(CultureInfo.InvariantCulture),
            RedirectRequired = false,
            Title = "Title",
            Uri = "",
            UserId = Guid.NewGuid()
        }
    };
    return Content(response.ToArray());
}
</code></pre>
                            <p>here, <b>CultureInfo</b> is the class "System.Globalization.CultureInfo"</p>
                            <p>return the response as a Array in the <a href="/WebApp/SmartApi" class="btn-link">SmartApiController</a></p>
                        </li>
                        <li>
                            <p><b>Get() :</b> in this method to the set the static value at the runtime see in this exmple</p>
                            <pre><code>
public HttpResponseMessage Get(int id)
{
    return Content(new TrackLogResponse
    {
        Code = "Abc",
        Id = Guid.NewGuid(),
        DetectedOn = DateTime.Now.ToString(CultureInfo.InvariantCulture),
        RedirectRequired = false,
        Title = "Title",
        Uri = "",
        UserId = Guid.NewGuid()
    });
}
</code></pre>
                            <p>here, <b>CultureInfo</b> is the class "System.Globalization.CultureInfo"</p>
                            <p>return the response directly to the static valueof the current info of to pass the <a href="/WebApp/SmartApi" class="btn-link">SmartApiController</a> not as a above example</p>
                        </li>
                        <li>
                            <p><b>Post() :</b> in this method to the post the static value at the runtime see in this exmple</p>
                            <pre><code>
public HttpResponseMessage Post(TrackLogForm form)
{
    return Content(new TrackLogResponse
    {
        Code = "Abc",
        Id = Guid.NewGuid(),
        DetectedOn = DateTime.Now.ToString(CultureInfo.InvariantCulture),
        RedirectRequired = false,
        Title = "Title",
        Uri = "",
        UserId = Guid.NewGuid()
    }); 
}
</code></pre>
                            <p>here, <b>CultureInfo</b> is the class "System.Globalization.CultureInfo"</p>
                            <p>return the response directly to the static valueof the current info of to pass the <a href="/WebApp/SmartApi" class="btn-link">SmartApiController</a> not as a above example</p>
                        </li>
                        <li>
                            <p><b>Put() :</b> in this method to the post the static value at the runtime see in this exmple</p>
                            <pre><code>
public HttpResponseMessage Put(int id, TrackLogForm value)
{
    return Content(new TrackLogResponse
    {
        Code = "Abc",
        Id = Guid.NewGuid(),
        DetectedOn = DateTime.Now.ToString(CultureInfo.InvariantCulture),
        RedirectRequired = false,
        Title = "Title",
        Uri = "",
        UserId = Guid.NewGuid()
    });
}
</code></pre>
                            <p>here, <b>CultureInfo</b> is the class "System.Globalization.CultureInfo"</p>
                            <p>return the response directly to the static valueof the current info of to pass the <a href="/WebApp/SmartApi" class="btn-link">SmartApiController</a> not as a above example</p>
                        </li>
                        <li>
                            <p><b>Delete() :</b> in this method to the delete if the return is true see in this exmple</p>
                            <pre><code>
public bool Delete(int id)
{
    return true;
}
</code></pre>
                        </li>
                    </ol>
                </div>
          